import asyncComponent from './async';
import getWebRoute from './web';

const Agent = asyncComponent(() => import('../pages/Agent'));
const Dashboard = asyncComponent(() => import('../pages/Dashboard'));

const routes = [
    {
        path: '/agent',
        component: Agent
    },
    {
        path: '/dashboard',
        component: Dashboard
    },
];

const Router = () => {
    return getWebRoute(routes);
};

export default Router;
